#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

typedef pair<int, int> PII;

int solution(vector<int> pos, vector<int> need)
{
    
}
int main()
{
    vector<int> pos;
    vector<int> need;

    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        int x;
        scanf("%d", &x);
        pos.push_back(x);
    }
    for (int i = 0; i < n; i++)
    {
        int x;
        scanf("%d", &x);
        need.push_back(x);
    }

    printf("%d\n", solution(pos, need));
    return 0;
}